<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching at the proxy server
%>
<% int validaSession = 0; %>
<%@ include file="Connections/session.jsp" %>

<%
	//session.removeAttribute("Username");
	//session.removeAttribute("Password");

	java.util.Enumeration enum_app = session.getAttributeNames(); 

	for( ;enum_app.hasMoreElements(); )
	 {
	   //out.print(enum_app.nextElement().toString()+"<br>");
	   session.removeAttribute(enum_app.nextElement().toString());
	   //out.print();
	 } 

	session.invalidate();	
%>
<html>
<head>
<title>CIMA v2 - Logout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Refresh" CONTENT="2;URL=login.jsp">
<link rel="stylesheet" href="miestilo.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" background="images/fondo.jpg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/encabezado.jpg">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="4" cellpadding="0" background="">
        <tr> 
          <td width="200">&nbsp;&nbsp;&nbsp; </td>
          <td height="66" valign="bottom">&nbsp; </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br><br><br><br><br><br>
<center>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td align="center">Su Sesi&oacute;n ha terminado.<br>
        Gracias.</td>
  </tr>
</table>
</center>
</body>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</html>
